home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d11 / vpt350.arc / VPT.MAN < prev   
Text File  |  1991-04-30  |  14KB  |  347 lines

  1.  
  2.  
  3.  
  4.                      ▄▄▄▄  ▄   ▄   ▄  ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄  ▄▄▄▄
  5.                      █  ▀  █   █   █  █                █  ▀
  6.                      █     █   █▄▄▄█  █▄▄▄  █▀▄▀█  █   █
  7.                      █     █▄▄▄  █       █  █ █ █  █   █
  8.                      █▄▄█  ▄▄▄▄▄▄▄▄▄▄▄▄▄▄█  █ █ █  █   █▄▄█
  9.  
  10.  
  11.               ┌─────────────────────────────────────────────────┐
  12.               │                                                 │
  13.               │   V I D E O   P A L E T T E   T O O L   V3.50   │
  14.               │                                                 │
  15.               └─────────────────────────────────────────────────┘
  16.  
  17.        Programs and Documentation are Copyright 1989 by clySmic software.
  18.                               All rights reserved.
  19.  
  20.  
  21.      I. INTRODUCTION
  22.  
  23.      This program allows VGA (PS/2 Model 50, 60 or 80), Display Adapter/2,
  24.      BIOS or register compatible VGA clone, or MCGA (PS/2 Model 25 or 30)
  25.      users to:
  26.  
  27.      ■    View the quarter-million color palette they've been hearing
  28.           about,
  29.  
  30.      ■    Set any text-mode attribute (0 - 15) to any color,
  31.  
  32.      ■    Control the overscan (a.k.a. border) color (not available on MCGA
  33.           systems),
  34.  
  35.      ■    Have the colors "stick" with most programs,
  36.  
  37.      ■    Load and save their favorite settings in color files, and
  38.  
  39.      ■    Use the program in a command-line mode.
  40.  
  41.      
  42.      II. FILES INCLUDED
  43.  
  44.      ■ VPT.EXE................The VGA/MCGA Palette Tool.
  45.      ■ VPT.MAN................This documentation.
  46.      ■ LOCK.COM...............A small TSR that locks EGA and VGA palette
  47.                               registers (optional).
  48.      ■ SEL.EXE................An ANSI color setting program.
  49.      ■ TSTPATN.EXE............A television test pattern to judge colors
  50.                               with.
  51.  
  52.  
  53.      
  54.      III. INTERACTIVE MODE
  55.  
  56.      Command: VPT
  57.  
  58.      VPT operates in text mode and allows setting of any or all of the
  59.      sixteen attributes available in text mode.  There are three sliders
  60.      (one each for Red, Green, and Blue), each of which can assume any of
  61.      64 values (0 through 63).  The current values are displayed next to
  62.      the sliders on the right side of the screen.
  63.  
  64.      Key(s)                   Action
  65.      -----------------        ----------------------------------------
  66.  
  67.      Left/Right Arrows        Moves the R,G, or B slider between 0 and 63
  68.                               to control the intensity of the R, G, or B
  69.                               signal.
  70.  
  71.      Control Left/Right       As above, but moves five positions instead of
  72.                               one.
  73.  
  74.      PageUp/PageDown          Selects an attribute between 0 and 15 to work
  75.                               with.
  76.  
  77.      A                        Shows licensing information About VPT.
  78.  
  79.      B                        Backdrop mode.  This makes the current
  80.                               attribute the background and places text with
  81.                               all sixteen attributes on the screen so you
  82.                               can see the combinations.  Any key exits this
  83.                               mode.
  84.  
  85.      D                        Loads the Default, boot-up colors.
  86.  
  87.      L                        Loads the colors from a file of your choice,
  88.                               if no file is specified, STD.VPT is assumed.
  89.                               You don't need to add the .VPT extension.
  90.  
  91.      O                        Sets the Overscan (border) color to the
  92.                               current attribute.  Not available on MCGA
  93.                               systems.
  94.  
  95.      S                        Saves the colors to a file of your choice, if
  96.                               no file is specified, STD.VPT is assumed.
  97.                               Note: all .VPT files are saved to the
  98.                               directory VPT is found in, NOT the current
  99.                               directory (unless VPT.EXE is there!)
  100.  
  101.      T                        Automatically loads the sTandard color file,
  102.                               STD.VPT.  This is the same as Loading it, its
  103.                               just easier.
  104.  
  105.      End                      Exits VPT.
  106.  
  107.      Keys Used While Loading or Saving a File:
  108.  
  109.      Backspace                Erases the last character in the file name.
  110.  
  111.      Ctrl-Backspace           Erases all the characters in the file name.
  112.  
  113.  
  114.      
  115.      IV. COMMAND-LINE MODE
  116.  
  117.      Command: VPT [option]
  118.  
  119.      Where [option] is one of the following (capitalization does not
  120.      matter):
  121.  
  122.      /L[filename]             This loads the specified file, if there is
  123.                               one.  If there isn't, you will get an error
  124.                               message.  If [filename] is not specified,
  125.                               STD.VPT will be assumed.
  126.  
  127.      /C[filename]             Like /L above, but does an ANSI clear screen
  128.                               afterwards and displays no messages.
  129.  
  130.      /D                       This loads the default palette.  These are
  131.                               the colors assigned by IBM and are the ones
  132.                               you would see if you didn't use VPT.
  133.  
  134.      /X                       This resets the "palette load on mode change"
  135.                               option to true (see TECHNICAL INFORMATION,
  136.                               below, for an explanation).
  137.  
  138.      /?                       Presents a help list recapping your options.
  139.  
  140.      Any other option will generate an error message.
  141.  
  142.      The main reason for command-line mode is to include VPT in batch
  143.      files.  First you would run VPT interactively, find the colors you
  144.      like, save them in the STD.VPT file, then include a line like the
  145.      following:
  146.  
  147.      VPT /L
  148.  
  149.      in your batch file.  This will load your saved colors when you run the
  150.      batch file.  VPT.EXE should be placed in a directory on your PATH.  If
  151.      you don't wish to see the informational messages produced by VPT in
  152.      command-line mode, you can redirect the output to the null device
  153.      (a.k.a. the bit bucket) as follows:
  154.  
  155.      VPT /L >NUL:
  156.  
  157.      Note that error messages *cannot* be redirected and will still be
  158.      seen.
  159.  
  160.      If there are any errors, the DOS ERRORLEVEL is set to 10.
  161.  
  162.      
  163.      V. MORE EXAMPLES
  164.  
  165.      VPT /L123PAL             Loads the color file 123PAL.VPT.  This
  166.                               assumes you created such a file using the
  167.                               interactive mode of VPT.
  168.  
  169.      VPT /C                   Loads STD.VPT and clears the screen.
  170.  
  171.      VPT /?                   Brings forth help.
  172.  
  173.  
  174.      
  175.      VI. TECHNICAL INFORMATION
  176.  
  177.      ■ GENERAL
  178.  
  179.      VPT works by making BIOS calls that manipulate the DAC (digital to
  180.      analog converter) color registers; each register (there are 256, to
  181.      allow for the 300x200x256 mode) contains 18 bits, 6 each for Red,
  182.      Green, and Blue.  Each RGB value can go from 0 to 63, all the
  183.      combinations makes for 262,144 possible colors.  You can show up to
  184.      sixteen of these at a time in the text modes, each of the sixteen
  185.      "attributes" can be any color (or all the same color) out of the
  186.      quarter-million.
  187.  
  188.      ■ MODE SETS
  189.  
  190.      Normally BIOS resets the EGA and DAC color registers whenever a mode
  191.      set is done.  VPT makes its colors stick across a mode change by using
  192.      the "Default Palette Loading During Mode Set" BIOS call to disable
  193.      this action.  If, for some reason, you desire to return this to its
  194.      default, boot-up condition, use VPT /X.  Then a subsequent mode
  195.      change, like MODE CO80, will cause the default conditions to prevail.
  196.  
  197.      ■ REGISTERS, REGISTERS EVERYWHERE
  198.  
  199.      ON the VGA, the DAC color registers are mapped through the EGA palette
  200.      registers, so, for instance, the attribute "Brown" (6) maps to the
  201.      color $14 on an EGA (out of its 64 possible colors); on the VGA, DAC
  202.      color register $14 contains $2A,$15,$00 for the R, G, and B values
  203.      (these are all default values).
  204.  
  205.      In order to not to be foiled by EGA-aware programs, VPT resets the EGA
  206.      palette registers to their default values each time it is run.  If a
  207.      program remaps the EGA registers, and then counts on a mode set to
  208.      return them to normal when it exits, the registers will *stay*
  209.      remapped because of the disabling of the "palette load on mode set".
  210.      Simply type VPT /C (for instance) and it will remap the EGA registers
  211.      to their default values.
  212.  
  213.      Note that EGA-aware programs will still use their own colors while the
  214.      program is running, VPT doesn't prevent that.
  215.  
  216.      The MCGA has no EGA registers, so the DAC registers are set directly
  217.      from the color attribute.
  218.  
  219.      ■ COLOR FILES
  220.  
  221.      The saved color files have an extension of .VPT which you NEVER need
  222.      to type when using VPT.
  223.  
  224.      For DOS 3.x users, they are stored in the same directory that VPT is
  225.      run from.  For instance, say VPT is stored in the C:\BIN directory,
  226.      that directory is on your PATH, and you are in C:\ZUUL.  The color
  227.      file will be stored in C:\BIN.  For DOS 2.x users, the file will be
  228.      stored in the root directory.  DOS 1.x users are quite out of luck,
  229.      why would one have advanced video but DOS 1.x anyway?
  230.  
  231.      VPT attempts to check for a valid color file by not loading any files
  232.      that aren't exactly 49 bytes long.  You will get a 'bad color file'
  233.      message.  If a file is 49 bytes long and has a .VPT extension but
  234.  
  235.  
  236.      *isn't* a VPT color file, it will get loaded anyway.  The colors
  237.      should be interesting.
  238.  
  239.      ■ REFERENCES
  240.  
  241.      VPT was written based on technical information from the book
  242.      "Programmer's Guide to PC & PS/2 Video Systems" by Richard Wilton and
  243.      IBM's Display Adapter/2 Technical Reference.
  244.  
  245.      
  246.      VII. CAVEATS
  247.  
  248.      EGA-aware and VGA-aware programs still will run with their own colors,
  249.      all (okay, almost all, who knows what's out there?) other programs
  250.      will use the colors VPT sets.
  251.  
  252.      VPT uses only BIOS calls and should run on the BIOS or register
  253.      compatible VGA clones that are now just becoming available; however,
  254.      the pseudo-VGAs (really EGAs with 640x480 mode) won't run it - they
  255.      still have only 64 colors total (and will cause grief down the road
  256.      for their buyers, I suspect).  The author welcomes any VGA clone test
  257.      results.
  258.  
  259.      
  260.      VIII. OTHER INCLUDED PROGRAMS
  261.  
  262.      ■ LOCK.COM
  263.  
  264.      If you want to "lock" the colors you set against any EGA/VGA-aware
  265.      programs that try to change them using BIOS, set your colors, then run
  266.      the TSR program LOCK.COM included in this package.  This program can
  267.      be removed and re-run by using a TSR control package like TurboPower's
  268.      excellent MARK and RELEASE (available on CompuServe and probably
  269.      everywhere else).  Note: VPT will not be able to reset your colors
  270.      after LOCK is run.  To reset them, remove LOCK, reset, then run LOCK
  271.      again.
  272.  
  273.      ■ TSTPATN.EXE
  274.  
  275.      This is a silly program that displays a test pattern to see what
  276.      various colors look like with lots of text and various lines on the
  277.      screen.  Also great for leaving on your screen all night.  This
  278.      program takes its colors from the DOS screen colors when its invoked.
  279.      Works best if you use something like ANSI.SYS or have LightGray and
  280.      Black re-mapped to different colors.
  281.  
  282.      ■ SEL.EXE
  283.  
  284.      A small ANSI color selector for those who use ANSI.SYS or a similar
  285.      ANSI screen driver.  Allows easy color selection using the BIOS/BASIC
  286.      color numbering scheme instead of the ANSI color numbers.  Type SEL /?
  287.      for instructions.
  288.  
  289.      
  290.      IX. ENHANCEMENTS
  291.  
  292.      On the drawing board is a TSR that would load the EGA registers with
  293.      the default values upon a mode change.  This would prevent the
  294.      situation when you are using an EGA aware program that exit by doing a
  295.      mode change and assumes that will reset the EGA registers.  With VPT
  296.  
  297.  
  298.      loaded it won't and one has to use VPT /C afterwards to clean up the
  299.      colors.  The author welcomes all suggestions for future enhancements.
  300.  
  301.      
  302.      X. ALL THAT LEGAL BROUHAHA
  303.  
  304.      VPT is copyrighted by clySmic software, and is released as Shareware.
  305.      It is requested that if you find this program useful, that you send
  306.      clySmic software $20.00 as a user fee FOR EACH MACHINE USED.
  307.  
  308.      You may copy the program and distribute it without charge for non-
  309.      commercial, non-governmental use.  You may not sell or otherwise
  310.      charge for VPT.  However, users' groups may charge a small fee (not to
  311.      exceed $7) for media and postage.  Commercial and governmental users
  312.      are REQUIRED to pay the user fee.  Please be certain that all files
  313.      are kept together.
  314.  
  315.      This program is provided AS IS without any warranty, expressed or
  316.      implied, including but not limited to fitness for a particular
  317.      purpose.  So there.
  318.  
  319.      clySmic software is not responsible for anything that may happen when
  320.      you use VPT, including hardware damage or information loss.
  321.  
  322.      Please make checks or money orders payable to Ralph B Smith Jr.
  323.  
  324.      User fees may be sent to:
  325.  
  326.                                 Ralph B Smith Jr
  327.                                 clySmic software
  328.                                  P. O. Box 2271
  329.                                Empire State Plaza
  330.                                 Albany, NY 12220
  331.  
  332.      Thank you.  This will allow more improvements to VPT, and will allow
  333.      other products to come your way.
  334.  
  335.  
  336.  
  337.                                                              -- Ralph Smith
  338.                                                                  President,
  339.                                                            clySmic software
  340.                                                    CompuServe No. 76156,164
  341.  
  342.      P.S. - NEW VPT VERSION AVAILABLE:
  343.  
  344.      There is a new, improved version of VPT, version 4.00, that features
  345.      auto filename lookup, faster color loading, integrity checking, and
  346.      more.  It is ONLY available by sending in your $20.00 user fee.  So
  347.      register VPT today!!!